package com.beyondsoft.mcms.common;


import org.springframework.context.support.AbstractApplicationContext;

public class ApplicationContextUtils {
	private static boolean alreadyInitialized = false;

	private static AbstractApplicationContext applicationContext;

	

	public synchronized static void init(AbstractApplicationContext applicationContext) {
		ApplicationContextUtils.applicationContext = applicationContext;
		alreadyInitialized = true;
	}

	public static boolean isAlreadyInitialized() {
		return alreadyInitialized;
	}
	
	public static AbstractApplicationContext getApplicationContext(){
		return applicationContext;
	}
}
